package com.xunlai.infra.permission.manager.web.vo.role;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liang
 * @date 12/11/22 7:37 PM
 */
@Data
public class CreateRoleRelationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 8347530787674667084L;
    /**
     * 角色ID
     */
    private Long roleId;

    /**
     * 角色code
     */
    private String roleCode;

    /**
     * 关联对象id
     */
    @NotNull
    private Long targetId;

    /**
     * 关联对象类型
     */
    @NotNull
    private Short targetType;
}
